package com.vivien.example.springbootdemo.controller;

import com.vivien.example.springbootdemo.pojo.Person;
import com.vivien.example.springbootdemo.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class PersonController {
    @Autowired
    private PersonService personService;

    @PostMapping("/person/list")
    public List<Person> getPersonList(@RequestBody List<String> identifyNoList){
        return personService.getPersonList(identifyNoList);
    }

}
